import { Suspense } from "react"
import { BrowserRouter, useRoutes } from "react-router-dom"
import { routes } from "./routes"
const RouterView = () => {
  const App = () => useRoutes(routes)
  return (
    <BrowserRouter>
      <Suspense>
        <App></App>
      </Suspense>
    </BrowserRouter>
  )
}
export default RouterView
